메인 콘텐츠로 건너뛰기
POST
/
notifications
Create a notification
curl --request POST \
  --url https://your_a2_service/notifications \
  --header 'Content-Type: application/json' \
  --data '{
  "created_at": "2023-11-07T05:31:56Z",
  "is_read": true,
  "message": {
    "code": "publish_request",
    "params": {}
  },
  "updated_at": "2023-11-07T05:31:56Z",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "created_at": "2023-11-07T05:31:56Z",
  "is_read": true,
  "message": {
    "code": "publish_request",
    "params": {}
  },
  "no": 123,
  "updated_at": "2023-11-07T05:31:56Z",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Body

application/json

알림 생성 스키마

is_read
boolean
required

알림 읽음 여부

user_id
string<uuid>
required

유저 id

created_at
string<date-time> | null

생성 일시

message
object

알림 메세지

Examples:
{ "code": "publish_request", "params": {} }
updated_at
string<date-time> | null

변경 일시

Response

Successful Response

알림 스키마

is_read
boolean
required

알림 읽음 여부

no
integer
required

알림 id

user_id
string<uuid>
required

유저 id

created_at
string<date-time> | null

생성 일시

message
object

알림 메세지

Examples:
{ "code": "publish_request", "params": {} }
updated_at
string<date-time> | null

변경 일시